<?php
	$id=$_GET["id"];
	$loi = "";
	if(isset($_POST["ok"])){
		$h = "";
		if($_POST["hang"] == null){
			$loi[] = "Ban chua nhap hang";
		}else{
			$h = $_POST["hang"];
		}
		if($h){
			$edit = new mhangxe();
			$edit->sethang($h);
			$edit->setid($id);
			$edit->edit();
			header("location:index.php?module=hang&action=list");
			exit();
		}
	}
	$show = new mhangxe();
	$data = $show->show($id);
	require ("views/hangxe/vedit_hang.php");
?>